import 'package:json_annotation/json_annotation.dart';

part 'oss_token.g.dart';


@JsonSerializable()
class OssToken extends Object {

  @JsonKey(name: 'access_key_id')
  String accessKeyId;

  @JsonKey(name: 'access_key_secret')
  String accessKeySecret;

  @JsonKey(name: 'expiration')
  String expiration;

  @JsonKey(name: 'security_token')
  String securityToken;

  @JsonKey(name: 'status_code')
  String statusCode;

  OssToken(this.accessKeyId,this.accessKeySecret,this.expiration,this.securityToken,this.statusCode,);

  factory OssToken.fromJson(Map<String, dynamic> srcJson) => _$OssTokenFromJson(srcJson);

  Map<String, dynamic> toJson() => _$OssTokenToJson(this);

}
